import java.util.LinkedList;

/**
 * a wrapper for a queue
 * @author BaoTam
 *
 */
public class MyQueue implements Structure {
	
	LinkedList<Path> queue;
	
	/**
	 * instantiate an empty queue
	 */
	public MyQueue() {
		queue = new LinkedList<Path>();
	}
	
	/**
	 * @param p, the path to be added to the queue
	 */
	public void add(Path p) {
		queue.add(p);
	}

	/**
	 * @return the path that has been removed from the queue
	 */
	public Path remove() {
		return queue.remove();
	}

	/**
	 * @return true if the queue is empty, false otherwise
	 */
	public boolean isEmpty() {
		return queue.isEmpty();
	}

}
